Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OneTimetokenAuthenticator as part of the magic link feature #97

Draft
wants to merge 1 commit into
base: 10.next-cake5
Choose a base branch
from

Conversation

ajibarra
Copy link
Member

No description provided.

@ajibarra ajibarra force-pushed the feature/magic-link branch 14 times, most recently from e3a387f to 3d1d4ba Compare February 14, 2025 10:01
Copy link
Member

@steinkel steinkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please also correct the phpstan related issues

strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2']
php-version: ['8.2', '8.3', '8.4']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to keep 8.1 as cakephp 5 is >=8.1

@@ -26,18 +26,19 @@
"source": "https://github.com/CakeDC/auth"
},
"require": {
"php": ">=8.1.0",
"php": ">=8.2.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep 8.1 for max compatibility with the related cakephp version 5


$usersTable = TableRegistry::getTableLocator()->get(Configure::read('Users.table'));

$user = $usersTable->loginWithToken($token);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll need to define an interface, then check it's implemented by the table, or check the method exists

@@ -32,7 +32,7 @@ class InvalidProviderException extends CakeException
* @param int $code code
* @param null $previous previous
*/
public function __construct(array|string $message, int $code = 500, $previous = null)
public function __construct(array|string $message, int $code = 500, null $previous = null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo?

@@ -32,7 +32,7 @@ class InvalidSettingsException extends CakeException
* @param int $code code
* @param null $previous previous
*/
public function __construct(array|string $message, int $code = 500, $previous = null)
public function __construct(array|string $message, int $code = 500, null $previous = null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants